package thread;

public class Demo5 {
    public static void main(String[] args) {
        Thread thread = new Thread(()->{
            while (true){
                System.out.println("hello thread");
            }
        });
        thread.start();
        while (true){
            System.out.println("hello main");
        }
    }
}
